The sample code for an Open Transport networking driver can be found in the :Source:OpenTransport: folder. To build it, set your working directory to :Source:OpenTransport: and type and run "build FWOTDriver". This will place three extensions in the :BuildResults:Extensions: folder.
The FWOTDriver file is a FireWire protocol driver that gets loaded at boot time. The FWOTDriver will be loaded and visible in the AppleTalk control panel whether or not any other hosts are attached. The FWOTDriver registers itself with OpenTransport when it's loaded. The format for native drivers and OpenTranport port modules is slightly different. Thus, the FWOTDriverLib file is required. It is identical to the FWOTDriver file except that it has a file type of 'shlb' instead of 'ndrv'.
Put the FireWire extensions from :Extensions:FWExtensions: and the above three extensions onto two Macs and connect them together with a FireWire cable. When they boot to the Finder, open the AppleTalk control panel and select the FireWire port. Make sure you have File Sharing enabled. Once you close the control panel and save the settings, you should be able to open the chooser and see the other Mac.
Version DR5:
There have been no functional changes for DR5.
Version DR4:
This version uses the new protocol driver architecture. It now exports the IP packet address in the local configuration ROM unit directory. There is no longer an OTVDevice.
Version DR3:
There have been no functional changes for DR3.
Version DR2:
There have been no functional changes for DR2.
Version DR1:
The driver in this sample code is loaded from an Open Transport expert loader. The source for the Open Transport expert loader is not included in this sample code.
This is the first pass at implementing an Open Transport driver over FireWire. Thus, it isn't the most pretty, but it will improve. It has only been tested for networking two machines together. The performance is comparable to Ethernet. It has been tested with System 7.5.3 with the latest OpenTransport.
If you want to get debugging information in MacsBug, open the HWSpecific.h file in the :Source:OpenTransport:FWOTDriver: folder. There are some #define statements that define various DebugStr macros to call strlen and some that define the DebugStr macros to call DebugStr. Uncomment out the #defines that use DebugStr and comment out the #defines that use strlen and recompile. You should get lots of UserBreaks into MacsBug when you use these extensions.